package com.itwk.gulimall.product.feign;

import com.itwk.common.to.search.SearchModel;
import com.itwk.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: wangke
 * @Date: 2021/01/26/下午 5:46
 * @Description:
 */
@FeignClient("gulimall-search")
public interface SearchBulkFeign {

    @PostMapping("/search/up/bulk")
    public R saveProductEs(@RequestBody List<SearchModel> searchModels);
}
